#ifndef LED_H
#define LED_H
/******************引入头文件*********************/
#include <stm32f4xx.h>
#include <stm32f4xx_rcc.h>
#include <stm32f4xx_gpio.h>

/******************宏定义************************/
#define LED1  0X01
#define LED2  0X02
#define LED3  0X04

//LED时钟
#define LED_RCC RCC_AHB1Periph_GPIOA

//led端口
#define LED_GPIO  GPIOA

//LED引脚
#define LED1_GPIO_PIN GPIO_Pin_6
#define LED2_GPIO_PIN GPIO_Pin_7


/******************引入全局变量******************/


/******************引入自定义头文件**************/


/******************函数声明********************/
void led_init(void);
void led_turn_on(unsigned char led);
void led_turn_off(unsigned char led);
void led_breath_onToOff(unsigned char led,unsigned int time);
void led_breath_offToOn(unsigned char led,unsigned int time);
void led_breath(unsigned char led,unsigned int time);

#endif
